package com.wdc.test;

public class InfoImpl<T> implements Info<T> {

    private T var;

    public InfoImpl(T var) {
        this.var = var;
    }

    @Override
    public T getVar() {
        return var;
    }

    public void setVar(T var) {
        this.var = var;
    }

    public static void main(String[] args) {
        Info<String> i = null;
        i = new InfoImpl<String>("tom");
        System.out.println("内容： "+i.getVar());
    }
}
